#include "stickcontrol.h"


#include "mainwindow.h"
#ifdef Q_OS_ANDROID
#else
#include "onexplayerstickcontrol.h"
#endif

StickControl * StickControl::m_pInstance = NULL;
StickControl * StickControl::getInstance()
{
    if(m_pInstance == NULL)
    {
#ifdef Q_OS_ANDROID
#else
        int nDevType = 0;
        switch(nDevType)
        {
        case 0:
            m_pInstance = new OneXPlayerStickControl();
        }
#endif

    }
    return m_pInstance;
}


StickControl::StickControl(QObject *parent)
    : QObject{parent}
{}
